import request from '@/utils/request'

// 查询街道办事处列表
export function listStreet(query) {
  return request({
    url: '/other/street/list',
    method: 'get',
    params: query
  })
}

// 查询街道办事处详细
export function getStreet(streetId) {
  return request({
    url: '/other/street/' + streetId,
    method: 'get'
  })
}

// 新增街道办事处
export function addStreet(data) {
  return request({
    url: '/other/street',
    method: 'post',
    data: data
  })
}

// 修改街道办事处
export function updateStreet(data) {
  return request({
    url: '/other/street',
    method: 'put',
    data: data
  })
}

// 删除街道办事处
export function delStreet(streetId) {
  return request({
    url: '/other/street/' + streetId,
    method: 'delete'
  })
}


// 获取角色
export function getRole() {
  return request({
    url: '/system/role/list',
    method: 'get'
  })
}
